<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%-- JSTL表达式（判断，循环，输出） --%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> <%-- 方法表达式（字符串截取，替换） --%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<c:forEach var="activity" items="${pageBean.list}" varStatus="status">
    <li class="am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-right pet_list_one_block" onclick="window.location.href='<%=basePath%>activity/getActivityDetails/${activity.activityId}/1'">
        <div class="am-u-sm-4 am-list-thumb">
            <a href="javascript:;" class="">
                <img src="${activity.activityPic}" class="pet_list_one_img wh_" alt="" style="" />
            </a>
        </div>
        <div class=" am-u-sm-8 am-list-main pet_list_one_nr" style="padding-left: 1rem;">
            <h3 class="am-list-item-hd pet_list_one_bt"><a href="javascript:;" class="">${activity.itemName}</a></h3>
            <div class="am-list-item-hd pet_list_one_bt" style="line-height: 20px;font-size:12px;margin-top: -1px;color: #999; max-height: 1.5em; overflow: hidden; text-overflow: ellipsis;">${activity.itemTitle}</div>
            <div class="am-list-item-text pet_list_one_text" style="padding-left: 1rem; font-weight: bold; color: red; ">￥ ${activity.itemPrice} * ${activity.itemCount}</div>
        </div>

    </li>
</c:forEach>

<c:if test="${pageBean.totalPage <= pageBean.currentPage}">
    <script>
        $("#loadActivitys").html('没有更多了').css("color","#ccc");
    </script>
</c:if>
<script src="<%=basePath%>js/height.js"></script>